import * as ajaxRequest from "../ajaxRequest";

import environment from "@/environment/index";

/**
 * 获取产品属性数据管理
 * @param {*} option 
 */
// 列表请求
export const getList = options => {
    return ajaxRequest.get(`${environment.productApi}/api/v1/ProductAttribute/GetList`, options);
};
// 详情请求
export const getDetail = options => {
    return ajaxRequest.get(`${environment.productApi}/api/v1/ProductAttribute/GetById/${options}`);
};
// 新增请求
export const postCreate = options => {
    return ajaxRequest.post(`${environment.productApi}/api/v1/ProductAttribute/Create`, options);
};
//编辑请求
export const putEdit = options => {
    return ajaxRequest.put(`${environment.productApi}/api/v1/ProductAttribute/Edit`, options);
};
// 删除请求
export const deLete = options => {
    return ajaxRequest._delete(`${environment.productApi}/api/v1/ProductAttribute/delete/${options}`);
};

